package com.itheima.exce;

public class ExceptionDemo3 {
    public static void main(String[] args) {
        try {
            int[] arr = {1, 2, 3, 4, 5};
            System.out.println(arr[10]);
        } catch (ArrayIndexOutOfBoundsException e) {
            String message = e.getMessage();
            System.out.println(message);
            System.out.println(e.toString());
            e.printStackTrace();
        }

        System.out.println("ABC");
    }
}

